const jwtBlackList = new Set();
const formatDateTime = (datetime)=>{
    if(typeof datetime==="string") datetime = new Date(datetime)
    const date = datetime.toLocaleDateString().split("/").map(e=>e.padStart(2,"0")).join("-")
    const time = datetime.toLocaleTimeString()
    return `${date} ${time}`
}
module.exports = { jwtBlackList, formatDateTime }